#include "UdpClient.hpp"
#include <memory>


void Usage(std::string proc)
{
    std::cout << "\n\rUsage: " << proc << " serverip serverport\n"
              << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(0);
    }

    std::string serverip = argv[1];
    uint16_t serverport = std::stoi(argv[2]);
    std::unique_ptr<UdpClient> clie(new UdpClient(serverip, serverport));

    clie->Init();
    clie->Run();

    return 0;
}